package com.lzx.adx.report.enums;

public enum QttTtyEnum {
    act("1","0"),
    reg("2","1"),
    re("3","6"),
    pay("4","2");

    private String productCode;

    private String mtCode;



    QttTtyEnum(String productCode, String mtCode) {
        this.productCode = productCode;
        this.mtCode = mtCode;

    }

    public String getProductCode() {
        return productCode;
    }

    public String getMtCode() {
        return mtCode;
    }



    public static String getMtCode(String productCode){
         QttTtyEnum[] qttTtyEnum=QttTtyEnum.values();
        for (QttTtyEnum ttyEnum : qttTtyEnum) {
            if(ttyEnum.getProductCode().equals(productCode)){
                return ttyEnum.getMtCode();
            }
        }
        return null;
    }
}
